 <nz-layout>
    <nz-header>
    <!-- <div class="logo"></div> -->
    <ul nz-menu nzTheme="dark" nzMode="horizontal">
        <li nz-menu-item (click)="getResultByParams('info')">info</li>
        <li nz-menu-item nzSelected (click)="getResultByParams('entity')">entity</li>
        <li nz-menu-item (click)="getResultByParams('repository')">repository</li>
        <li nz-menu-item (click)="getResultByParams('service')">service</li>
        <li nz-menu-item (click)="getResultByParams('service_impl')">service_impl</li>
        <li nz-menu-item (click)="getResultByParams('vo')">vo</li>
    </ul>
    </nz-header>
    <nz-content>
    <div class="inner-content">
            <div *ngIf="!javaCodeInfo">
              <!-- <pre> -->
                <!-- {{javaCode}} -->
                <!-- <textarea >{{javaCode}}</textarea> -->
                <textarea rows="100" nz-input >{{javaCode}}</textarea> 
            <!-- </pre> -->
            </div>
            <div *ngIf="javaCodeInfo">
                  <h4>{{this.autoCode.classComment}}</h4>
                  <nz-table  #fixedTable nzSize="small" [nzData]="data" [nzScroll]="{ x: '100%', y: '400px' }">
                    <thead>
                      <tr>
                        <th>表字段名</th>
                        <th>表段属性</th>
                        <th>类字段名</th>
                        <th>字段类型</th>
                        <th>字段注释</th>
                        <th>能否为空</th>
                        <th>默认  值</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr *ngFor="let data of fixedTable.data">
                        <td nzBreakWord>{{ data.columnName }}</td>
                        <td nzBreakWord>{{ data.columnClass }}</td>
                        <td nzBreakWord>{{ data.fieldName }}</td>
                        <td nzBreakWord>{{ data.fieldClass }}</td>
                        <td nzBreakWord>{{ data.fieldComment }}</td>
                        <td nzBreakWord>{{ data.blank }}</td>
                        <td nzBreakWord>{{ data.defaultStr }}</td>
                      </tr>
                    </tbody>
                  </nz-table>
            </div>
        </div>
    </nz-content>
</nz-layout>
